//
//  ZYMyStoreOilsPriceTableViewCell.m
//  ZYOils
//
//  Created by 段新瑞 on 2019/9/30.
//  Copyright © 2019 Mr.Xr. All rights reserved.
//

#import "ZYMyStoreOilsPriceTableViewCell.h"

@interface ZYMyStoreOilsPriceTableViewCell()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *myNewPriceLabel;

@property (weak, nonatomic) IBOutlet UILabel *oldPriceLabel;

@end

@implementation ZYMyStoreOilsPriceTableViewCell

- (void)setModel:(ZYOilsInfoModel *)model {
    _model = model;
    
    self.nameLabel.text = model.oilName;
    self.myNewPriceLabel.text = [NSString stringWithFormat:@"现价:%@/L", model.neePrice];
    self.oldPriceLabel.text = [NSString stringWithFormat:@"原价:%@/L", model. oldPrice];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
